<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>结算单</title>
    <style type="text/css">
        td{
            height: 25px;
            width: 100px;
            border: #3a8ee6 1px solid;

        }
        input{
            height: 21px;
        }

    </style>
    <script type="text/javascript" src="../../js/jquery-1.11.0.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script type="text/javascript" src="../../js/02/jiesuan/num03.js"></script>
    <script type="text/javascript" src="../../js/02/jiesuan/add.js"></script>
    <script type="text/javascript" src="../../js/02/drugb/yeshu1.js"></script>
    <script type="text/javascript" src="../../js/02/quanxuan.js"></script>
    <script type="text/javascript">
        $(function () {
            gets(1)
            /*供货商查询*/
            $.ajax({
                url: '/myspringboot/purchasement/findAllghs',
                type: 'post',
                dataType: "json",
                success: function (result){
                    var dclist=result.data;
                    var dcid = document.getElementById("supplier");
                    dcid.innerHTML = "<option value='0'>全部</option>";
                    for (var i = 0; i < dclist.length; i++) {
                        var opt = document.createElement("option");
                        opt.innerText = dclist[i].surName;
                        opt.setAttribute("value", dclist[i].surId)
                        dcid.appendChild(opt)
                    }
                }
            })
        })
    </script>
</head>
<body>
<div>
    <table class="" style="border: 1px solid #999;border-collapse:collapse">
        <tr>
            <h3 style="height: 50px" >结算单维护</h3>

        </tr>
        <tr>
            <td>结算单编号：</td>
            <td><input id="po_number" name="ponumber" type="text" value=""></td>
            <td></td>
            <td>结算单名称：</td>
            <td><input id="po_name" name="poname" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>结算状态：</td>
            <td>
                <select id="po_state" name="postate" style=" height: 25px; width: 160px;">
                    <option value="">请选择</option>
                    <option value="0">未结算</option>
                    <option value="1">已结算</option>
                </select>
            </td>
            <td></td>
            <td>采购医院：</td>
            <td><input id="podi_hid" name="podihid" type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>供货商：</td>
            <td>
                <select id="supplier"  name="ssupplier" style=" height: 25px; width: 160px;">
                    <option value="0">请选择</option>
                </select>
            </td>
            <td></td>
        </tr>


    </table>
    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="reset"  onclick="gets()">查询</button>
        <button type="reset"><a href="/myspringboot/purchasement/export">导出</a></button>
        <br>

    </td>
    <table>
        <button  data-toggle="modal" data-target="#myModal">添加结算单</button>
        <tr>
            <td>序号</td>
            <td><input type="checkbox" id="checkbox1" onclick="selectAll(this)">选择</td>
            <td>结算单编号</td>
            <td>结算单名称</td>
            <td>结算状态</td>
            <td>结算医院</td>
            <td>结算供货商</td>
            <td>添加</td>
        </tr>
        <tbody class="a">
        </tbody>
    </table>
</div>

<div class="im-page" id="impage">
    <tr>
        <td><button id='first'>首页</button></td>
        <td><button id='before'>上一页</button></td>
        <td>第<span id="pnum"></span>页</td>
        <td>共<span id="ptotal"></span>页</td>
        <td><button  id='next'>下一页</button></td>
        <td><button id='last'>尾页</button></td>
    </tr>
</div>
<!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        结算单添加
                    </h4>
                </div>
                <div class="modal-body">
                    <table>
                        <tr>
                            <td> 医院: <input type="text" id="yiyuan" name="01"></td>
                            <td> 联系人:<input type="text" id="lianxiren" name="02"></td>
                            <td> 采购单名称:<input type="text" id="caigoudanmingcheng" name="03"></td>
                        </tr>
                        <tr>
                            <td> 联系方式: <input type="text" id="lianxifangshi" name="04"></td>
                            <td>    备注: <input type="text" id="beizhu" name="05"></td>
                            <td> 结算时间: <input type="text" id="gonghuo" name="06"></td>
                        </tr>
                    </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" onclick="add()">保存采购单
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

</body>
</html>
